package com.yl.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import nonapi.io.github.classgraph.json.Id;
import org.springframework.format.annotation.DateTimeFormat;
import sun.rmi.runtime.Log;

import java.util.Date;

/**
 * @author 王帅洋
 * @datetime 2023/6/30 20:31
 * @description 类对象
 */
@ApiModel(value = "管理员登入类")
@Data
@TableName("yl_admin")
public class LoginBean {
    @ApiModelProperty(value = "主键id")
    @TableField("id")
    @TableId(type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "姓名")
    @TableField("name")
    private String name;
    @ApiModelProperty(value = "头像")
    @TableField("img_url")
    private String imgUrl;
    @ApiModelProperty(value = "手机号")
    @TableField("phone")
    private String phone;
    @ApiModelProperty(value = "身份证号")
    @TableField("id_card")
    private Long idCard;
    @ApiModelProperty(value = "部门id")
    @TableField("dep_id")
    private Long depId;
    @ApiModelProperty(value = "账号")
    @TableField("username")
    private String username;
    @ApiModelProperty(value = "密码")
    @TableField("password")
    private String password;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField("create_date")
    private Date createDate;
    @ApiModelProperty(value = "机构中心端管理员id")
    @TableField("vip_id")
    private Long vipId;
    @ApiModelProperty(value = "养老院外键关联")
    @TableField("yly_id")
    private Long ylyId;


}
